package com.ruoyi.rms.mapper;

import java.util.List;
import com.ruoyi.rms.domain.DishesOrder;
import org.apache.ibatis.annotations.Param;

/**
 * 点餐信息Mapper接口
 * 
 * @author wyl
 * @date 2024-03-11
 */
public interface DishesOrderMapper 
{
    /**
     * 查询点餐信息
     * 
     * @param orderId 订单信息主键
     * @return 点餐信息
     */
    public List<DishesOrder> selectDishesOrderByOrderId(Long orderId);

    /**
     * 查询点餐信息
     * @param orderId 订单信息主键
     * @param dishesId 菜品信息主键
     * @return 点餐信息
     */
    public DishesOrder selectDishesOrderByOrderIdAndDishesId(@Param("orderId") Long orderId, @Param("dishesId") Long dishesId);

    /**
     * 查询点餐信息列表
     * 
     * @param dishesOrder 点餐信息
     * @return 点餐信息集合
     */
    public List<DishesOrder> selectDishesOrderList(DishesOrder dishesOrder);

    /**
     * 新增点餐信息
     * 
     * @param dishesOrder 点餐信息
     * @return 结果
     */
    public int insertDishesOrder(DishesOrder dishesOrder);

    /**
     * 修改点餐信息
     * 
     * @param dishesOrder 点餐信息
     * @return 结果
     */
    public int updateDishesOrder(DishesOrder dishesOrder);

    /**
     * 删除点餐信息
     * 
     * @param orderId 点餐信息主键
     * @return 结果
     */
    public int deleteDishesOrderByOrderId(Long orderId);

    /**
     * 批量删除点餐信息
     * 
     * @param orderIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDishesOrderByOrderIds(Long[] orderIds);
}
